import {request} from './request'
import qs from 'qs'

//需要模拟表单数据进行提交
export function loginNet(loginForm){
  return request({
    url:'/login',
    method:'post',
    data: qs.stringify(loginForm),
    headers:{ 'Content-Type':'application/x-www-form-urlencoded'}
  })
}

//第三方登录的接口
export function loginWithToken(params){
  return request({
    url:"/loginWithToken",
    params
  })
}
